package factory;

/**
 * 
 * @author wangpeihu
 *	@version 2009-12-01
 */
public class NokiaCompany {
	private static PhoneFactory pf = new PhoneFactory(); // Nokia买了一个手机工厂用来生产N97

	public static void main(String[] args) {
		Phone n97 = pf.createPhone("Nokia", "N97");
		System.out.println(n97.getBrand() +
										":"+ n97.getModel()+ 
										n97.sendMessage(10086));
		System.out.println(n97.getBrand() +
				":"+ n97.getModel()+ 
				n97.call(10086));
	}

}
